package com.swan.knife4j.controller.auth;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @author zongf
 * @date 2024-10-12
 **/
@RestController
@RequestMapping("/auth/dept")
@Tag(name = "2.部门接口", description = "测试用户接口")
public class DeptController {

    @Operation(summary = "1.hello接口")
    @GetMapping("/hello")
    public String hello(String name) {
        return this.getClass().getSimpleName() +  "-hello:" + name + ", " + LocalDateTime.now();
    }

    @Operation(summary = "2.hi接口")
    @GetMapping("/hi")
    public String hi(String name) {
        return this.getClass().getSimpleName() +  "-hi:" + name + ", " + LocalDateTime.now();
    }

    @Operation(summary = "3.world接口")
    @GetMapping("/world")
    public String world(String name) {
        return this.getClass().getSimpleName() +  "-world:" + name + ", " + LocalDateTime.now();
    }


    @Operation(summary = "4.time接口")
    @GetMapping("/time")
    public String time(String name) {
        return this.getClass().getSimpleName() +  "-time:" + name + ", " + LocalDateTime.now();
    }

}
